package com.suda.sudaexamsystem.pojo;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * 做题记录
 */
public class Record {
    private int id;
    // 做题用户
    private User user;
    // 试卷
    private ExamPaper paper;
    // 试卷题目答题记录
    private List<RecordItem> recordItems = new ArrayList<>();
    // 成绩
    private BigDecimal score;
    // 开始时间
    private Date startTime;
    // 结束时间
    private Date endTime;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public ExamPaper getPaper() {
        return paper;
    }

    public void setPaper(ExamPaper paper) {
        this.paper = paper;
    }

    public List<RecordItem> getRecordItems() {
        return recordItems;
    }

    public void setRecordItems(List<RecordItem> recordItems) {
        this.recordItems = recordItems;
    }

    public BigDecimal getScore() {
        return score;
    }

    public void setScore(BigDecimal score) {
        this.score = score;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    @Override
    public String toString() {
        return "Record{" +
                "id=" + id +
                ", user=" + user +
                ", paper=" + paper +
                ", recordItems=" + recordItems +
                ", score=" + score +
                ", startTime=" + startTime +
                ", endTime=" + endTime +
                '}';
    }
}
